package com.yang.design.create.factory.abstractfactory1;

/**
 * 具体工厂1
 */
public class Factory2 implements AbstractFactory {
    @Override
    public GoodsA getInstanceA() {
        return new GoodsA2();
    }

    @Override
    public GoodsB getInstanceB() {
        return new GoodsB2();
    }
}
